import Vue from 'vue'

import axios from 'axios'
import VueAxios from 'vue-axios'

import ViewUI from 'view-design'
import 'view-design/dist/styles/iview.css'
import './styles/theme.less'

import VueSvgIcon, { PluginOptions } from 'vue-svgicon'
import 'vue-svgicon/dist/svgicon.css'

import 'material-design-icons/iconfont/material-icons.css'

import 'animate.css/animate.css'

import App from './App.vue'
import router from './router'
import store from './store'

Vue.config.productionTip = false

Vue.use(VueAxios, axios)

Vue.use(ViewUI)

// While changing tag name, make sure to update transformAssetUrls option of vue-loader
Vue.use<PluginOptions>(VueSvgIcon, {
  tagName: 'SvgIcon'
})

export default new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
